import org.apache.spark.sql.functions.col

// 选择"OrderID", "Product"和"Quantity"列，并将"Quantity"列重命名为"UnitsSold"
val selectedDF = salesDF.select(col("OrderID"), col("Product"), col("Quantity").alias("UnitsSold"))

// 显示结果
selectedDF.show()
